<?php
/**
 * Created by PhpStorm.
 * User: 96572
 * Date: 2017/4/3
 * Time: 23:54
 */
return [
    'id' => 'blog',
    'language'=>'zh-CN',
    'basePath' => dirname(dirname(__DIR__)) . '/application',
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'defaultRoute' => 'admin/index/index',
    'components' => [
        'user' => [
            'identityClass' => 'app\modules\admin\models\User', // User must implement the IdentityInterface
            'enableAutoLogin' => false,
            // 'loginUrl' => ['user/login'],
            // ...
        ],
        'assetManager' => [
            'basePath' => '@webroot/assets',
            'baseUrl' => '@web/assets'
        ],
        'i18n' => [
            'translations' => [
                'blog' => [
                    // 语言包的类
                    'class' => 'yii\i18n\PhpMessageSource',
                    // 语言包的路径，当language == zh-CN时，
                    // 实际文件的路径为 @app/assets/lang/zh-CN/blog.php
                    'basePath' => '@app/assets/lang'
                ],
//                'power' => [
//                    'class' => 'yii\i18n\PhpMessageSource',
//                    //'basePath' => '/messages',
//                    'fileMap' => [
//                        'power' => 'power.php',
//                    ],
//                ],
            ],
        ],
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => '@vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app'
                ],
            ],
        ],
    ],
    'modules' => [
        'admin' => [
            'class' => 'app\modules\admin\Admin'
        ]
    ]
];